package com.zerdoor.service.impl;

import com.zerdoor.dao.IArtistListDao;
import com.zerdoor.service.IArtistListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhongjieyu on 2014/11/11.
 * 艺术家列表业务层实现类
 */
@Service
public class ArtistListServiceImpl implements IArtistListService {

    @Autowired
    private IArtistListDao artistListDao;

    @Override
    public List<Map<String, String>> selectAllArtistList(Map<String, String> param) throws Exception {


        return artistListDao.selectAllArtistList(param);
    }

    @Override
    public Map<String, Object> findInitData() throws Exception {

        Map<String ,Object> dataMap = new HashMap<String, Object>();

        dataMap.put("artistGrade",artistListDao.findMinorCodeByMajorid(126));

        return dataMap;
    }
}
